html,body{
    height: 100%;
}
body{
    margin: 0;
}
.header{
    background-color: #333;
    padding: 12px;
    height: 60px;
    box-sizing: border-box;
    position: relative;
}
.btn,.select{
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    border-radius: 6px;
    background-color: #74b374;
    color: #fff;
    border: none;
    padding: .4em 1em;
    font-size: 14px;
}
.btn:active{
    background-color: #559455;
}
.btn:disabled{
    background-color: #bbbbbb;
    cursor: no-drop;
}
.db-cur{
    color: #fff;
    margin-left: 1em;
}
.main{
    height: calc(100% - 60px);
}
.left{
    width: 300px;
    float: left;
    box-sizing: border-box;
    border-right: 1px solid #ccc;
    height: 100%;
    overflow: auto;
    color: #333;
}
.left:empty, .right:empty{
    display: flex;
    justify-content: center;
    align-items: center;
    color: #888;
}
.left:empty::after{
    content: '木有东西嘞'
}

.list{
    position: relative;
    line-height: 1.4;
    margin: 0;
    padding: 0;
    list-style: none;
}
.list-name{
    padding: .4em .5em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: default;
    box-sizing: border-box;
}
.list-name:hover{
    border-left: #df531b 2px solid;
}
.list-icon1, .list-icon2{
    width: 1.2em;
    height: 1.2em;
    text-align: center;
    line-height: 1.2em;
    cursor: pointer;
    margin-right: .5em;
    color: #df531b;
    font-weight: bold;
}
.list-icon1:after{
    content: '+';
}
.list-icon2:after{
    content: '-';
}
.list-child{
    list-style: none;
    padding-left: 1em;
    display: none;
}
li.active{
    background-color: #b4b7e4;
}
.show-child .list-child{
    display: block;
}
.show-child .list-icon1:after{
    content: '-'
}

.right{
    width: calc(100% - 300px);
    float: left;
    box-sizing: border-box;
    height: 100%;
    overflow: auto;
}
.right:empty:after{
    content: '这是一个简单的数据库UI';
}

.form{
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #555;
    padding: 0 2em 1em 1em;
    border-bottom-right-radius: 10px;
    transform: scaleY(0);
    color: #fff;
    font-size: 14px;
    transition: transform .3s;
    transform-origin: top;
    z-index: 10;
}
.form.show{
    transform: scaleY(1);
}
.input{
    outline: none;
    border-radius: 4px;
    border: 1px solid #6569a0;
    padding: .4em .6em;
}

.loading{
    position: fixed;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(0,0,0,.5);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 100;
}
.loading.show{
    display: flex;
}
.loading-icon1{
    width: 30px;
    height: 60px;
    border-top: 4px solid #fff;
    border-bottom: 4px solid #fff;
    border-radius: 50%;
    position: absolute;
    animation: loading 2s infinite alternate-reverse ease-in-out;
}
.loading-icon2{
    width: 60px;
    height: 30px;
    border-left: 4px solid #fff;
    border-right: 4px solid #fff;
    border-radius: 50%;
    position: absolute;
    animation: loading 1.5s infinite alternate-reverse ease-in-out;
}
@keyframes loading{
    0%{
        transform: rotate(0);
    }
    100%{
        transform: rotate(360deg);
    }
}

table{
    border-collapse: collapse;
    font-size: 12px;
}
th{
    padding: .3em .5em;
    background-color: #ddd; 
    border: 1px solid #bbb;
}
td{
    padding: .3em .5em;
    border: 1px solid #ccc;
}

.pages{
    position: absolute;
    height: 100%;
    top: 0;
    right: 1em;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}
.pages .select{
    margin: 0 8px;
}
textarea{
    width: calc(100% - 450px);
    margin-left: 20px;
    height: 26px;
    vertical-align: middle;
    border-radius: 6px;
    outline: none;
}